import java.util.Random;
import java.util.Scanner;

public class x {
    public static void main(String[] args) {
        int[] arr=new int[5];
        Scanner scan=new Scanner(System.in);
        for (int i=0; i<arr.length; i++){
            System.out.println("请输入第"+(i+1)+"个1-60之间的数字：");
            int num=scan.nextInt();
            arr[i]=num;
        }
        Random r=new Random();
        int suijishu=r.nextInt(9)+2;
        System.out.println("生成的随机数为："+suijishu);
        System.out.println("符合条件的元素为：");
        for (int i=0; i<arr.length; i++);
        int i = 0;
        if(arr[i]%suijishu!=0){
                System.out.println(arr[i]+"");
            }
        System.out.println();
    }
}
